﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PageSecurityCustom.aspx.cs" Inherits="CrossFactory.SiteNote.Admin.PageSecurityCustom" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <title>Page Security Custom</title>
    	<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1" />
		<meta name="CODE_LANGUAGE" content="C#" />
		<meta name="vs_defaultClientScript" content="JavaScript" />
		
		
		
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5" />
		<link href="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Stylesheets/StyleSheet.aspx" type="text/css" rel="stylesheet" />
		<script language="javascript" type="text/javascript" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Scripts/website.js"></script>
			<script language="javascript" type="text/javascript">
			function EndSave()
			{
				window.opener.navigate(window.opener.location);
				//window.opener.__doPostBack('', null);
				window.close();
			}
			function load()
			{		
			    //alert('resize');		
				ResizeDialogBoxSiteNote();
			}					
		</script>
</head>
<body style="margin:0px">
    <form id="form1" runat="server">
        <a id="size">
				<table cellspacing="0" cellpadding="0" width="100%" border="0">
					<tr>
						<td valign="top" width="100%" height="32">
							<table height="32" cellspacing="0" cellpadding="0" width="100%" border="0">
								<tr>
									<td align="left" width="154" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/TopBackground.gif" colSpan="2" height="19"><IMG height="19" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/TopLeft.gif" width="154"></td>
									<td align="right" width="100%" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/TopBackground.gif" height="32" rowSpan="2"><IMG height="32" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/logo.gif" width="165"></td>
								</tr>
								<tr height="13">
									<td width="7" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/LeftBackgroundTop.gif" height="13"><IMG height="13" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="7"></td>
									<td width="147" height="13"><IMG height="13" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="147"></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr height="100%">					
						<td valign="top" width="100%" height="100%">
							<table height="100%" cellspacing="0" cellpadding="0" width="100%" border="0">
								<tr>
									<td width="7" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/LeftBackgroundBottom.gif"><IMG height="1" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="7"></td>
									<td width="5"><IMG height="1" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="5"></td>
									<td>
										<table>
											<tr>
												<td class="cmMessageTitle"><b>Page security Custom : </b></td>
											</tr>
											<tr>		
												<td class="permissions">
													<asp:Label ID="lblPermissions" Runat="server" CssClass="permissions">Permissions :</asp:Label>
													<div style="height:500px;overflow-y:scroll;overflow-x:hidden;border:1px solid #000">
													    <table class="permissionsTable">
														    <asp:Repeater ID="listPermissions" Runat="server">
															    <HeaderTemplate>
																    <tr bgcolor="#b4cdeb">
																	    <td align="center" style="padding:5px 5px 5px 5px;"><strong>Permission name</strong></td>
																	    <td></td>
																    </tr>
															    </HeaderTemplate>
															    <ItemTemplate>
																    <tr bgcolor="#d8e5f5">
																	    <td align="left" style="padding:5px 5px 5px 5px;">
																		    <input type="hidden" runat="server" id="PermissionName" value='<%#  DataBinder.Eval(Container.DataItem, "Value") %>' NAME="PermissionName"/>
																		    <%# DataBinder.Eval(Container.DataItem, "Name") %>
																	    </td>
																	    <td><asp:CheckBox runat="server" ID="CheckBoxPermission" /></td>
																    </tr>
															    </ItemTemplate>
														    </asp:Repeater>
													    </table>
													</div>
												</td>
											</tr>
										</table>
									</td>
									<td width="5"><IMG height="1" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="5"></td>
									<td width="11" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/RightBackground.gif"><IMG height="1" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/transp.gif" width="11"></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr height="40">
						<td>
							<table height="100%" cellSpacing="0" cellPadding="0" border="0">
								<tr>
									<td height="8"><IMG src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/FooterLeft.gif"></td>
									<td width="100%">
										<table height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
											<tr>
												<td width="100%" background="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/FooterCenter.gif" height="8"></td>
												<td height="8"><IMG height="8" src="<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/FooterRight.gif" width="255"></td>
											</tr>
										</table>
									</td>
								</tr>
								<tr>
									<td align="right" width="100%" colSpan="2" border="0">
										<table style="BACKGROUND: url(<%= CrossFactory.SiteNote.Components.Utils._ApplicationPath + CrossFactory.SiteNote.Components.Settings._settings.VirtualPath %>/Admin/Images/Layout/Footer.gif) no-repeat right" height="40" width="100%" border="0">
											<tr>
												<td width="100%"></td>
												<td></td>
												<td><asp:Button id="btnSave" runat="server" Text="Save" Width="75" Height="23" CssClass="cmtext"></asp:Button></td>
												<td><input type="button" value="Close" onclick="window.close();" style="WIDTH:75px;HEIGHT:23px" class="cmtext"></td>
												<td width="1"></td>
											</tr>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
				</table>
			</a>
		</form>
	</body>
</html>
